package topday1_9.chj;

/**
 * @Auther:小陈的Java
 */
public class OverloadMethod {
    int mol(int a){
        return a^2;
    }
    int mol(int a,int b){
        return a*b;
    }
    String mol(String ss){
        return ss;
    }

    public static void main(String[] args) {
        OverloadMethod overloadMethod = new OverloadMethod();
        int result1 = overloadMethod.mol(7);
        System.out.println(result1);
        int result2 = overloadMethod.mol(4, 2);
        System.out.println(result2);
        String result3 = overloadMethod.mol("abcdefg");
        System.out.println(result3);
    }
}
